from PyQt5 import QtWidgets, QtGui, QtCore
from project.test.table import *
import sys


class Example(QtWidgets.QWidget, Ui_Form):
    def __init__(self, parent=None):
        super(Example, self).__init__(parent)
        # self.num = 0
        self.setupUi(self)
        self.movie = QtGui.QMovie("blue_com_disable.gif")
        self.movie.start()

        self.tableWidget.setRowCount(25)
        self.tableWidget.setColumnCount(25)

        for i in range(self.tableWidget.rowCount()):
            for j in range(self.tableWidget.columnCount()):
                label = QtWidgets.QLabel()
                label.setMovie(self.movie)
                self.tableWidget.setCellWidget(i, j, label)
        self.tableWidget.horizontalHeader().setVisible(False)
        self.tableWidget.verticalHeader().setVisible(False)
        self.setWindowState(QtCore.Qt.WindowMaximized)
        self.tableWidget.horizontalHeader().setSectionResizeMode(QtWidgets.QHeaderView.Stretch)
        self.tableWidget.verticalHeader().setSectionResizeMode(QtWidgets.QHeaderView.Stretch)


if __name__=="__main__":
    app = QtWidgets.QApplication(sys.argv)
    example = Example()
    example.show()
    sys.exit(app.exec_())